home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20041116-20060924
/
000132_fdc@columbia.edu_Thu Jul 28 11:01:26 2005.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Path: newsmaster.cc.columbia.edu!not-for-mail
From: Frank da Cruz <fdc@columbia.edu>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Redial on No Dialtone
Date: 28 Jul 2005 14:37:29 GMT
Organization: Columbia University
Lines: 49
Message-ID: <slrndehrd9.ovm.fdc@sesame.cc.columbia.edu>
References: <1122507809.564246.163530@g47g2000cwa.googlegroups.com>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1122561449 4430 128.59.59.56 (28 Jul 2005 14:37:29 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 28 Jul 2005 14:37:29 GMT
User-Agent: slrn/0.9.8.0 (SunOS)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15374
On 2005-07-27, Allen <amtekdesign@gmail.com> wrote:
: It appears that by default, redialing occurs for dial failures such as
: BUSY or NO CARRIER, but the dialer aborts on the first NO DIALTONE
: error. Is it possible to configure Kermit to redial on NO DIALTONE?
:
Not to redial automatically.
: I'm using
: SET DIAL RETRIES 5
: DIAL \m(name)
: IF FAIL DIAL \m(name)
:
: which will force a second attempt on NO DIALTONE, and gives me 10
: retries on a persistent BUSY/NO CARRIER, but is there a better way?
:
: Is there a status variable I can test that tells me why the DIAL
: command failed?
:
Kermit has lots of built-in variables. You can see what they are by
giving the command SHOW VARIABLES. Among them are:
\v(dialcount) = 0
\v(dialnumber) =
\v(dialresult) =
\v(dialstatus) = -1
\v(dialsuffix) =
\v(dialtype) = -1
\v(dialstatus) is the one you're looking for. The values are shown in
Table 5-3 on page 116 of "Using C-Kermit". A value of 24 corresponds to
NO DIALTONE. You can also use the \v(dialresult) variable to retrieve the
actual message from the modem.
So if you want to treat NO DIALTONE as a recoverable error, you can do
something like this (I didn't test it):
.\%n = 5
while > \%n 0 {
set dial retries \%n
dial \m(name)
if success break
if != \v(dialresult) 24 break
decrement \%n \v(dialcount)
}
if < \v(cx_status) 1 stop 1 Call failed: \v(name)
The \v(cx_status) variable is positive if there is an active connection.
- Frank